package com.alibaba.dubbo.registry.common.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 实体类
 * @author lry
 */
public abstract class Entity implements Serializable {

	private static final long serialVersionUID = -3031128781434583143L;
	
	/****/
	private List<Long> ids;
	/**ID**/
	private Long id;
	/**创建时间**/
	private Date created;
	/**编辑时间**/
    private Date modified;
    /**当前时间**/
    private Date now;
    /**操作人：最大长度为200，超过则省略**/
    private String operator;
    /**操作地址**/
    private String operatorAddress;
    /****/
    private boolean miss;
    
    public Entity() {}
    public Entity(Long id) {
        this.id = id;
    }
    
	public List<Long> getIds() {
		return ids;
	}

	public void setIds(List<Long> ids) {
		this.ids = ids;
	}

    public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getModified() {
        return modified;
    }

    public void setModified(Date modified) {
        this.modified = modified;
    }

	public Date getNow() {
		return now;
	}

	public void setNow(Date now) {
		this.now = now;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		if (operator != null && operator.length() > 200) {
		    operator = operator.substring(0, 200);
    	}
		this.operator = operator;
	}
    
    public String getOperatorAddress() {
        return operatorAddress;
    }
    
    public void setOperatorAddress(String operatorAddress) {
        this.operatorAddress = operatorAddress;
    }

    public boolean isMiss() {
        return miss;
    }
    
    public void setMiss(boolean miss) {
        this.miss = miss;
    }

}
